package com.lcredu.service;

import com.lcredu.dao.MemberDAOImpl;

/**
 * @author 黎长容
 * @date 2025-07-12 15:31
 */
public class MemberServiceImpl {
    //注入DAO
    private MemberDAOImpl memberDAO;

    public MemberServiceImpl() {
//        System.out.println("MemberServiceImpl 构造器~");
    }

    public void add() {
//        System.out.println("MemberServiceImpl add()...");
        memberDAO.add(); 
    }

    public void setMemberDAO(MemberDAOImpl memberDAO) {
//        System.out.println("setMemberDAO()被调用...");
        this.memberDAO = memberDAO;
    }

    public MemberDAOImpl getMemberDAO() {
        return memberDAO;
    }
}
